package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HelpInfoMapper;
import com.ruoyi.system.domain.HelpInfo;
import com.ruoyi.system.service.IHelpInfoService;

/**
 * 帮扶信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-29
 */
@Service
public class HelpInfoServiceImpl implements IHelpInfoService 
{
    @Autowired
    private HelpInfoMapper helpInfoMapper;

    /**
     * 查询帮扶信息
     * 
     * @param id 帮扶信息主键
     * @return 帮扶信息
     */
    @Override
    public HelpInfo selectHelpInfoById(Long id)
    {
        return helpInfoMapper.selectHelpInfoById(id);
    }

    /**
     * 查询帮扶信息列表
     * 
     * @param helpInfo 帮扶信息
     * @return 帮扶信息
     */
    @Override
    public List<HelpInfo> selectHelpInfoList(HelpInfo helpInfo)
    {
        return helpInfoMapper.selectHelpInfoList(helpInfo);
    }

    /**
     * 新增帮扶信息
     * 
     * @param helpInfo 帮扶信息
     * @return 结果
     */
    @Override
    public int insertHelpInfo(HelpInfo helpInfo)
    {
        return helpInfoMapper.insertHelpInfo(helpInfo);
    }

    /**
     * 修改帮扶信息
     * 
     * @param helpInfo 帮扶信息
     * @return 结果
     */
    @Override
    public int updateHelpInfo(HelpInfo helpInfo)
    {
        return helpInfoMapper.updateHelpInfo(helpInfo);
    }

    /**
     * 批量删除帮扶信息
     * 
     * @param ids 需要删除的帮扶信息主键
     * @return 结果
     */
    @Override
    public int deleteHelpInfoByIds(Long[] ids)
    {
        return helpInfoMapper.deleteHelpInfoByIds(ids);
    }

    /**
     * 删除帮扶信息信息
     * 
     * @param id 帮扶信息主键
     * @return 结果
     */
    @Override
    public int deleteHelpInfoById(Long id)
    {
        return helpInfoMapper.deleteHelpInfoById(id);
    }
}
